<?php
namespace BeautyParlorAdmin\Controller;

use Think\Controller;

class BaseController extends Controller {
	
	public $id = 0;
	
	public function __construct() {
		parent::__construct();
		
		if (!isset($_SESSION ['beauty_parlor'])) {
			redirect(U('/Index/login'));
		}
		
		$beautyParlor = unserialize($_SESSION ['beauty_parlor']);
		$this->id = $beautyParlor['id'];
		$this->assign('basePath', get_full_url());
	}
}